import {defineConfig} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
import AutoImport from 'unplugin-auto-import/vite'
export default defineConfig({
	plugins: [
		uni(),
		AutoImport({
			imports: [
				// 预设
				'vue',
				'uni-app'
			]
		})
	],
	server: {
		port: 8080,
		open: true,
		proxy: {
			'/v4': {
				target: 'https://test-java.changepro.vip:8080',
				// target: 'http://xiaopiqiu2.natapp1.cc',
				changeOrigin: true,
			}
		},
	},
});